package de.gwtprime.client.event.channel;

import com.google.gwt.event.shared.GwtEvent;

import de.gwtprime.client.event.handler.channel.TransactionUpdateAvailableHandler;

/**
 * This event is thrown, if the server detects a new deposit of coins.
 * New transactions need be loaded first.
 */
public class TransactionUpdateAvailableEvent extends GwtEvent<TransactionUpdateAvailableHandler>{
	
	public static Type<TransactionUpdateAvailableHandler> TYPE = new Type<TransactionUpdateAvailableHandler>(); 
	
	public TransactionUpdateAvailableEvent() {}

	@Override
	protected void dispatch(TransactionUpdateAvailableHandler handler) {
		handler.onTransactionUpdateAvailable(this);
	}

	@Override
	public Type<TransactionUpdateAvailableHandler> getAssociatedType() {
		return TYPE;
	}

}
